<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            constructor(name,age){
                this.name = name;
                this.age = age;
            }
            say(){
                console.log(`${this.name}的年龄是${this.age}`);
            }
            smile(){
                console.log('笑');
            }
            static sayHello(){
                console.log('hello');
            }
        }
        class Male extends Person{
            constructor(name,age,height){
                super(name,age);
                this.height = height;
            }
            say(){
                console.log(`${this.name}的年龄是${this.age}，身高是${this.height}`);
            }
            static sayHello(){
                super.sayHello();
            }
        }
        console.dir(Person);
        console.dir(Male);
        console.log(new Male('张三',18,180));
    </script>
</body>
</html>